package com.smart.seckilldemo.commons.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单导入类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDto {
    /**
     * 订单ID
     */
    @TableId(value = "order_id", type = IdType.INPUT)
    private Long orderId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 订单号
     */
    @TableField(value = "order_number")
    private Long orderNumber;

    /**
     * 下单时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 订单状态（0待支付1待发货2待收货3待评价4已完成5已删除）
     */
    @TableField(value = "order_status")
    private Byte orderStatus;

    /**
     * 收货地址ID
     */
    @TableField(value = "address")
    private Integer address;

    /**
     * 金额
     */
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 交易类型(1消费 2充值)
     */
    @TableField(value = "type_id")
    private Byte typeId;

    @TableField(value = "haha")
    private String haha;
}
